package com.jkoss.dao.stu;

import com.jkoss.pojo.stu.Classes;
import com.jkoss.pojo.stu.ClassesExample;
import com.jkoss.tool.Page;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestMapping;

public interface ClassesMapper {
    int countByExample(ClassesExample example);

    int deleteByExample(ClassesExample example);

    int deleteByPrimaryKey(Integer clzid);

    int insert(Classes record);

    int insertSelective(Classes record);

    List<Classes> selectByExample(ClassesExample example);

    Classes selectByPrimaryKey(Integer clzid);

    int updateByExampleSelective(@Param("record") Classes record, @Param("example") ClassesExample example);

    int updateByExample(@Param("record") Classes record, @Param("example") ClassesExample example);

    int updateByPrimaryKeySelective(Classes record);

    int updateByPrimaryKey(Classes record);

    @Select("select * from t_classes where eid=${params.eid}  ")
    @RequestMapping("com.jkoss.dao.stu.ClassesMapper.BaseResultMap")
	List<Classes> findClassByEid(Page<Classes> page);

    @Select("select * from t_classes where clzid=#{clzid}")
    @ResultMap("com.jkoss.dao.stu.ClassesMapper.BaseResultMap")
	Classes selectClanameByclzid(int clzid);
}